﻿@model IEnumerable<SVNUG.Tracker.Models.Task>

@{
    ViewBag.Title = "SVNUG.Tracker - Task Dashboard";
}

<h2>Task Dashboard</h2>

<table>
    <tr>
        <th></th>
        <th>
            Type
        </th>
        <th>
            Status
        </th>
        <th>
            Name
        </th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.TaskId }) |
            @Html.ActionLink("Details", "Details", new { id=item.TaskId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.TaskId })
        </td>
        <td>
            @item.TaskType
        </td>
        <td>
            @item.TaskStatus
        </td>
        <td>
            @item.Name
        </td>
    </tr>
}

</table>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
